.class public Ldgb/l0;
.super Ldgb/bp;
.source "SourceFile"


# instance fields
.field private final f:Landroid/content/Context;

.field private final g:Ldgb/i0;

.field private final h:Ldgb/g0;

.field private final i:[B


# direct methods
.method constructor <init>(Landroid/content/Context;[BLdgb/i0;Ldgb/g0;)V
    .locals 2
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # [B
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Ldgb/i0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p4    # Ldgb/g0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0, p1, p3}, Ldgb/bp;-><init>(Landroid/content/Context;Ldgb/i0;)V

    .line 2
    iput-object p1, p0, Ldgb/l0;->f:Landroid/content/Context;

    .line 3
    iput-object p3, p0, Ldgb/l0;->g:Ldgb/i0;

    .line 4
    array-length p1, p2

    int-to-long v0, p1

    iput-wide v0, p3, Ldgb/i0;->c:J

    .line 5
    iput-object p4, p0, Ldgb/l0;->h:Ldgb/g0;

    .line 6
    iput-object p2, p0, Ldgb/l0;->i:[B

    return-void
.end method

.method private a(I)I
    .locals 2

    .line 49
    sget-boolean v0, Ldgb/o0;->b:Z

    if-eqz v0, :cond_0

    .line 50
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Download failed for other responses:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ldgb/s0;->b(Ljava/lang/String;)V

    :cond_0
    const/16 p1, 0x9

    return p1
.end method

.method private a(Ldgb/i0;)I
    .locals 2
    .param p1    # Ldgb/i0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 48
    iget-object p1, p0, Ldgb/bp;->c:Ldgb/h0;

    const-string v0, "het"

    const-string v1, ""

    invoke-interface {p1, v0, v1}, Ldgb/h0;->a(Ljava/lang/String;Ljava/lang/String;)Z

    const/4 p1, 0x7

    return p1
.end method

.method private a(Ljava/net/HttpURLConnection;)I
    .locals 0
    .param p1    # Ljava/net/HttpURLConnection;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 51
    sget-boolean p1, Ldgb/o0;->b:Z

    if-eqz p1, :cond_0

    const-string p1, "Got HTTP response code 503"

    .line 52
    invoke-static {p1}, Ldgb/s0;->b(Ljava/lang/String;)V

    :cond_0
    const/4 p1, 0x7

    return p1
.end method

.method private a(Ljava/net/HttpURLConnection;Ldgb/i0;)I
    .locals 5
    .param p1    # Ljava/net/HttpURLConnection;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Ldgb/i0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 38
    iget-object v0, p0, Ldgb/bp;->c:Ldgb/h0;

    const/4 v1, 0x5

    const-string v2, "rc"

    invoke-interface {v0, v2, v1}, Ldgb/h0;->b(Ljava/lang/String;I)I

    move-result v0

    if-lt v0, v1, :cond_0

    const/16 p1, 0x8

    return p1

    :cond_0
    const-string v1, "Location"

    .line 39
    invoke-virtual {p1, v1}, Ljava/net/HttpURLConnection;->getHeaderField(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const/4 v1, 0x7

    if-nez p1, :cond_1

    return v1

    .line 40
    :cond_1
    sget-boolean v3, Ldgb/o0;->c:Z

    if-eqz v3, :cond_2

    .line 41
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Location :"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ldgb/s0;->b(Ljava/lang/String;)V

    .line 42
    :cond_2
    :try_start_0
    new-instance v3, Ljava/net/URI;

    iget-object v4, p0, Ldgb/l0;->g:Ldgb/i0;

    iget-object v4, v4, Ldgb/i0;->e:Ljava/lang/String;

    invoke-direct {v3, v4}, Ljava/net/URI;-><init>(Ljava/lang/String;)V

    new-instance v4, Ljava/net/URI;

    invoke-direct {v4, p1}, Ljava/net/URI;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v4}, Ljava/net/URI;->resolve(Ljava/net/URI;)Ljava/net/URI;

    move-result-object v3

    .line 43
    invoke-virtual {v3}, Ljava/net/URI;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, p2, Ldgb/i0;->g:Ljava/lang/String;
    :try_end_0
    .catch Ljava/net/URISyntaxException; {:try_start_0 .. :try_end_0} :catch_0

    .line 44
    iget-object p1, p0, Ldgb/bp;->c:Ldgb/h0;

    add-int/lit8 v0, v0, 0x1

    invoke-interface {p1, v2, v0}, Ldgb/h0;->a(Ljava/lang/String;I)Z

    return v1

    :catch_0
    nop

    .line 45
    sget-boolean v0, Ldgb/o0;->c:Z

    if-eqz v0, :cond_3

    .line 46
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Couldn\'t resolve redirect URI "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " for "

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Ldgb/l0;->g:Ldgb/i0;

    iget-object p1, p1, Ldgb/i0;->e:Ljava/lang/String;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ldgb/s0;->c(Ljava/lang/String;)V

    :cond_3
    const/4 p1, 0x0

    .line 47
    iput-object p1, p2, Ldgb/i0;->g:Ljava/lang/String;

    const/16 p1, 0x9

    return p1
.end method

.method private a(Ljava/net/HttpURLConnection;Ldgb/i0;Ldgb/g0;)I
    .locals 3
    .param p1    # Ljava/net/HttpURLConnection;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Ldgb/i0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Ldgb/g0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 23
    iget-object v0, p2, Ldgb/i0;->i:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v1, p2, Ldgb/i0;->j:Ljava/util/Map;

    if-eqz v1, :cond_0

    .line 24
    invoke-virtual {p0, p1, v0, v1}, Ldgb/bp;->a(Ljava/net/HttpURLConnection;Ljava/util/List;Ljava/util/Map;)V

    .line 25
    :cond_0
    invoke-virtual {p1}, Ljava/net/HttpURLConnection;->getContentEncoding()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x7

    .line 26
    :try_start_0
    invoke-virtual {p1}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v1, :cond_1

    .line 27
    invoke-static {v1}, Ldgb/x0;->a(Ljava/io/Closeable;)V

    return v2

    :cond_1
    if-eqz v0, :cond_2

    :try_start_1
    const-string p1, "gzip"

    .line 28
    invoke-virtual {v0, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 29
    new-instance p1, Ljava/util/zip/GZIPInputStream;

    invoke-direct {p1, v1}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V

    :goto_0
    move-object v1, p1

    goto :goto_1

    :cond_2
    if-eqz v0, :cond_3

    const-string p1, "deflate"

    .line 30
    invoke-virtual {v0, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_3

    .line 31
    new-instance p1, Ljava/util/zip/InflaterInputStream;

    invoke-direct {p1, v1}, Ljava/util/zip/InflaterInputStream;-><init>(Ljava/io/InputStream;)V

    goto :goto_0

    .line 32
    :cond_3
    :goto_1
    invoke-static {v1}, Ldgb/x0;->a(Ljava/io/InputStream;)[B

    move-result-object p1
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 33
    invoke-static {v1}, Ldgb/x0;->a(Ljava/io/Closeable;)V

    const/16 v0, 0xc8

    .line 34
    iput v0, p2, Ldgb/i0;->a:I

    .line 35
    iget-object v0, p0, Ldgb/l0;->f:Landroid/content/Context;

    invoke-interface {p3, v0, p2, p1}, Ldgb/g0;->a(Landroid/content/Context;Ldgb/i0;[B)V

    .line 36
    iget-object p1, p0, Ldgb/bp;->c:Ldgb/h0;

    iget-object p2, p2, Ldgb/i0;->e:Ljava/lang/String;

    invoke-static {p2}, Ldgb/r0;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-interface {p1, p2}, Ldgb/h0;->c(Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1

    :catchall_0
    move-exception p1

    .line 37
    invoke-static {v1}, Ldgb/x0;->a(Ljava/io/Closeable;)V

    throw p1

    :catch_0
    invoke-static {v1}, Ldgb/x0;->a(Ljava/io/Closeable;)V

    return v2
.end method

.method private a(Ldgb/i0;[BLdgb/g0;)V
    .locals 3
    .param p1    # Ldgb/i0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # [B
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Ldgb/g0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ldgb/bp$a;,
            Ldgb/bp$c;
        }
    .end annotation

    .line 1
    sget-boolean v0, Ldgb/o0;->b:Z

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "start post "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p1, Ldgb/i0;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ldgb/s0;->b(Ljava/lang/String;)V

    .line 3
    :cond_0
    invoke-static {}, Ldgb/t0;->b()Z

    move-result v0

    if-eqz v0, :cond_6

    const/4 v0, 0x0

    .line 4
    :try_start_0
    iget-object v1, p0, Ldgb/l0;->f:Landroid/content/Context;

    const/4 v2, 0x1

    invoke-virtual {p0, v1, p1, v2}, Ldgb/bp;->a(Landroid/content/Context;Ldgb/i0;Z)Ljava/net/HttpURLConnection;

    move-result-object v0

    .line 5
    invoke-direct {p0, v0, p2}, Ldgb/l0;->a(Ljava/net/HttpURLConnection;[B)V

    .line 6
    invoke-direct {p0, v0, p1, p3}, Ldgb/l0;->b(Ljava/net/HttpURLConnection;Ldgb/i0;Ldgb/g0;)I

    move-result p1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 p2, 0x7

    if-eq p1, p2, :cond_3

    if-eqz v0, :cond_1

    .line 7
    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->disconnect()V

    :cond_1
    if-ne p1, v2, :cond_2

    return-void

    .line 8
    :cond_2
    new-instance p2, Ldgb/bp$a;

    const-string p3, "post error"

    invoke-direct {p2, p1, p3}, Ldgb/bp$a;-><init>(ILjava/lang/String;)V

    throw p2

    .line 9
    :cond_3
    :try_start_1
    new-instance p1, Ldgb/bp$c;

    invoke-direct {p1, p0}, Ldgb/bp$c;-><init>(Ldgb/bp;)V

    throw p1
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    move-exception p1

    goto :goto_0

    :catch_0
    move-exception p1

    .line 10
    :try_start_2
    sget-boolean p2, Ldgb/o0;->b:Z

    if-eqz p2, :cond_4

    const-string p2, "HttpURLConnection connect failed"

    .line 11
    invoke-static {p2, p1}, Ldgb/s0;->b(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 12
    :cond_4
    new-instance p1, Ldgb/bp$c;

    invoke-direct {p1, p0}, Ldgb/bp$c;-><init>(Ldgb/bp;)V

    throw p1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_0
    if-eqz v0, :cond_5

    .line 13
    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->disconnect()V

    :cond_5
    throw p1

    .line 14
    :cond_6
    new-instance p1, Ldgb/bp$a;

    const/16 p2, 0xc3

    const-string p3, "no allow network"

    invoke-direct {p1, p2, p3}, Ldgb/bp$a;-><init>(ILjava/lang/String;)V

    throw p1
.end method

.method private a(Ljava/net/HttpURLConnection;[B)V
    .locals 2
    .param p1    # Ljava/net/HttpURLConnection;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ldgb/bp$a;
        }
    .end annotation

    const/4 v0, 0x0

    .line 15
    :try_start_0
    new-instance v1, Ljava/io/DataOutputStream;

    invoke-virtual {p1}, Ljava/net/HttpURLConnection;->getOutputStream()Ljava/io/OutputStream;

    move-result-object p1

    invoke-direct {v1, p1}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 16
    :try_start_1
    invoke-virtual {v1, p2}, Ljava/io/DataOutputStream;->write([B)V

    .line 17
    invoke-virtual {v1}, Ljava/io/DataOutputStream;->flush()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 18
    invoke-static {v1}, Ldgb/x0;->a(Ljava/io/Closeable;)V

    return-void

    :catchall_0
    move-exception p1

    move-object v0, v1

    goto :goto_0

    :catchall_1
    move-exception p1

    .line 19
    :goto_0
    :try_start_2
    sget-boolean p2, Ldgb/o0;->b:Z

    if-eqz p2, :cond_0

    const-string p2, "HttpURLConnection sendPost failed"

    .line 20
    invoke-static {p2, p1}, Ldgb/s0;->b(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 21
    :cond_0
    new-instance p1, Ldgb/bp$a;

    const/16 p2, 0x9

    const-string v1, "sendPost error"

    invoke-direct {p1, p2, v1}, Ldgb/bp$a;-><init>(ILjava/lang/String;)V

    throw p1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_2

    :catchall_2
    move-exception p1

    .line 22
    invoke-static {v0}, Ldgb/x0;->a(Ljava/io/Closeable;)V

    throw p1
.end method

.method private b(Ljava/net/HttpURLConnection;Ldgb/i0;Ldgb/g0;)I
    .locals 5
    .param p1    # Ljava/net/HttpURLConnection;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Ldgb/i0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Ldgb/g0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p1}, Ljava/net/HttpURLConnection;->getResponseCode()I

    move-result v0

    .line 2
    sget-boolean v1, Ldgb/o0;->b:Z

    if-eqz v1, :cond_0

    .line 3
    iget-object v1, p0, Ldgb/bp;->c:Ldgb/h0;

    const/4 v2, 0x3

    const-string v3, "nf"

    invoke-interface {v1, v3, v2}, Ldgb/h0;->b(Ljava/lang/String;I)I

    move-result v1

    .line 4
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "received response for "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/net/HttpURLConnection;->getURL()Ljava/net/URL;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v3, " statusCode="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v3, " retryTime="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ldgb/s0;->b(Ljava/lang/String;)V

    .line 5
    :cond_0
    iget-object v1, p0, Ldgb/bp;->c:Ldgb/h0;

    invoke-virtual {p1}, Ljava/net/HttpURLConnection;->getLastModified()J

    move-result-wide v2

    const-string v4, "tln"

    invoke-interface {v1, v4, v2, v3}, Ldgb/h0;->a(Ljava/lang/String;J)Z

    const/16 v1, 0xc8

    if-eq v0, v1, :cond_7

    const/16 v1, 0xce

    if-ne v0, v1, :cond_1

    goto :goto_2

    :cond_1
    const/16 p3, 0x1f7

    if-ne v0, p3, :cond_2

    .line 6
    invoke-direct {p0, p1}, Ldgb/l0;->a(Ljava/net/HttpURLConnection;)I

    move-result p1

    return p1

    :cond_2
    const/16 p3, 0x12d

    if-eq v0, p3, :cond_6

    const/16 p3, 0x12e

    if-eq v0, p3, :cond_6

    const/16 p3, 0x12f

    if-eq v0, p3, :cond_6

    const/16 p3, 0x133

    if-ne v0, p3, :cond_3

    goto :goto_1

    :cond_3
    const/16 p1, 0x1a0

    if-eq v0, p1, :cond_5

    const/16 p1, 0x19c

    if-ne v0, p1, :cond_4

    .line 7
    iget-object p1, p0, Ldgb/bp;->c:Ldgb/h0;

    const-string p3, "het"

    .line 8
    invoke-interface {p1, p3}, Ldgb/h0;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_4

    goto :goto_0

    .line 9
    :cond_4
    invoke-direct {p0, v0}, Ldgb/l0;->a(I)I

    move-result p1

    return p1

    .line 10
    :cond_5
    :goto_0
    invoke-direct {p0, p2}, Ldgb/l0;->a(Ldgb/i0;)I

    move-result p1

    return p1

    .line 11
    :cond_6
    :goto_1
    invoke-direct {p0, p1, p2}, Ldgb/l0;->a(Ljava/net/HttpURLConnection;Ldgb/i0;)I

    move-result p1

    return p1

    .line 12
    :cond_7
    :goto_2
    invoke-direct {p0, p1, p2, p3}, Ldgb/l0;->a(Ljava/net/HttpURLConnection;Ldgb/i0;Ldgb/g0;)I

    move-result p1

    return p1
.end method


# virtual methods
.method protected a()V
    .locals 6

    .line 53
    iget-object v0, p0, Ldgb/bp;->c:Ldgb/h0;

    const-string v1, "nf"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Ldgb/h0;->a(Ljava/lang/String;I)Z

    .line 54
    :catch_0
    :goto_0
    :try_start_0
    iget-object v0, p0, Ldgb/l0;->g:Ldgb/i0;

    iget-object v2, p0, Ldgb/l0;->i:[B

    iget-object v3, p0, Ldgb/l0;->h:Ldgb/g0;

    invoke-direct {p0, v0, v2, v3}, Ldgb/l0;->a(Ldgb/i0;[BLdgb/g0;)V
    :try_end_0
    .catch Ldgb/bp$c; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ldgb/bp$a; {:try_start_0 .. :try_end_0} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    .line 55
    sget-boolean v1, Ldgb/o0;->b:Z

    if-eqz v1, :cond_0

    .line 56
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "post Failed "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ldgb/bp$a;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v0}, Ldgb/s0;->b(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 57
    :cond_0
    iget-object v1, p0, Ldgb/l0;->g:Ldgb/i0;

    invoke-virtual {v0}, Ldgb/bp$a;->a()I

    move-result v0

    iput v0, v1, Ldgb/i0;->a:I

    .line 58
    iget-object v0, p0, Ldgb/l0;->h:Ldgb/g0;

    iget-object v1, p0, Ldgb/l0;->f:Landroid/content/Context;

    iget-object v2, p0, Ldgb/l0;->g:Ldgb/i0;

    const/4 v3, 0x0

    invoke-interface {v0, v1, v2, v3}, Ldgb/g0;->a(Landroid/content/Context;Ldgb/i0;[B)V

    goto :goto_1

    :catch_2
    move-exception v0

    .line 59
    iget-object v2, p0, Ldgb/bp;->c:Ldgb/h0;

    const/4 v3, 0x3

    invoke-interface {v2, v1, v3}, Ldgb/h0;->b(Ljava/lang/String;I)I

    move-result v2

    if-lt v2, v3, :cond_1

    :goto_1
    return-void

    .line 60
    :cond_1
    invoke-virtual {v0}, Ldgb/bp$c;->a()I

    move-result v3

    .line 61
    iget-object v4, p0, Ldgb/bp;->c:Ldgb/h0;

    add-int/lit8 v5, v2, 0x1

    invoke-interface {v4, v1, v5}, Ldgb/h0;->a(Ljava/lang/String;I)Z

    .line 62
    sget-boolean v4, Ldgb/o0;->b:Z

    if-eqz v4, :cond_2

    .line 63
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Retry post "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, " times"

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2, v0}, Ldgb/s0;->b(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_2
    int-to-long v2, v3

    .line 64
    :try_start_1
    invoke-static {v2, v3}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method
